package com.gszyxy.bigdataclass1group3.consumer.mapper;
import com.gszyxy.bigdataclass1group3.consumer.Params.ConsumerRequestParams;
import com.gszyxy.bigdataclass1group3.consumer.pojo.Consumer;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ConsumerMapper {
    //注册
    //int register(String account, String passwd);
    //登录
   // Consumer login(String account, String passwd);
    //根据账号查找是否被注册
    Consumer findByAccount(String account);

    int register(ConsumerRequestParams consumerRequestParams);

    Consumer login(ConsumerRequestParams consumerRequestParams);
}
